package com.tsystems.tuni.sportplanet.ws;

import java.util.List;

import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.Style;

import com.tsystems.tuni.sportplanet.entity.Company;
import com.tsystems.tuni.sportplanet.entity.Location;
import com.tsystems.tuni.sportplanet.entity.Season;
import com.tsystems.tuni.sportplanet.entity.Sport;
import com.tsystems.tuni.sportplanet.entity.Team;

@WebService
@SOAPBinding(style = Style.RPC)
public interface SponsorStatisticsWS {

	@WebMethod
	public List<Team> getAllTeam();

	@WebMethod
	public List<Sport> getAllSport();

	/**
	 * @param sport
	 *            - interest sport
	 * @return - all teams playing in it
	 */
	@WebMethod
	public List<Location> getAllLocationBySport(Sport sport);

	/**
	 * @param team
	 *            - interest team
	 * @return sum score from last season
	 */
	@WebMethod
	public int getLastTeamScore(Team team);

	@WebMethod
	public List<Season> getPlayedSeason(Team team);

	@WebMethod
	int getTeamScoreFromSeason(Team team, Season season);

	@WebMethod
	public Company getCompanyByTeam(Team team);

	@WebMethod
	public Location getCompanyLocation(Company company);

	List<Team> getTeamsFromCity(String city, Sport sport);

}
